<template>
	<view>
		<!-- 图片 -->
		<template name="image">
			<view class="diy-module1 diy-image"
				:style="'background-color:'+(backcolor)+';display: flex;flex-direction: '+('right' == float ? 'row-reverse' : 'row')+';flex-wrap:wrap;'">
				<view
					:style="'width:'+(width*100)+'rpx;height:'+(height*100)+'rpx;margin-left:'+(marginLeft*100)+'rpx;margin-right:'+(marginRight*100)+'rpx;margin-top:'+(marginTop*100)+'rpx;margin-bottom:'+(marginBottom*100)+'rpx;padding:'+(padding*100)+'rpx'"
					@tap.stop.prevent="doJump" :data-linktype="image.linktype" :data-linkid="image.linkid"
					v-for="(image,index) in (data)" :key="image.did">
					<image :src="util.attachedUrl(image.src,baseUrl)" :lazy-load="true"
						:style="'width:100%;height:100%;display:block;border-radius:'+(radius*100)+'rpx'">
					</image>

					<view v-if="'show_text' == showText"
						:style="'width:100%;text-align:center;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:'+(lineheight*100)+'rpx;color:'+(fontcolor)">
						{{image.text}}
					</view>
				</view>
			</view>
		</template>

		<!-- 音频 -->
		<template name="audio">
			<view class="diy-module1 diy-audio"
				:style="'display: block;box-sizing: content-box;padding-top: '+(paddingTop*100)+'rpx;padding-bottom: '+(paddingBottom*100)+'rpx;text-align:center'">
				<audio :src="util.attachedUrl(data[0].src,baseUrl)" :controls="true" style="text-align:left">
				</audio>
			</view>
		</template>

		<!-- 视频 -->
		<!-- <template name="video">
  <view class="diy-module1 diy-video" style='display: block;box-sizing: content-box;width:{{width*100}}rpx;height:{{height*100}}rpx;padding-left:{{paddingLeft*100}}rpx;padding-right:{{paddingRight*100}}rpx;padding-top:{{paddingTop*100}}rpx;padding-bottom:{{paddingBottom*100}}rpx'>
    <video id="video-{{data[0].did}}" bindplay="videoPlay" data-id="video-{{data[0].did}}" src='{{data[0].src}}' controls='true' style='width:100%;height:100%;' poster='{{data[0].image}}' binderror='videoErr' custom-cache="{{false}}"></video>
  </view>
</template> -->
		<template name="video">
			<view class="diy-module1 diy-video"
				:style="'display: block;width:'+(width*100)+'rpx;height:'+(height*100)+'rpx;padding-left:'+(paddingLeft*100)+'rpx;padding-right:'+(paddingRight*100)+'rpx;padding-top:'+(paddingTop*100)+'rpx;padding-bottom:'+(paddingBottom*100)+'rpx'">
				<txv-video :vid="data[0].vid" :playerid="data[0].did" :width="'100%'" :height="'100%'"></txv-video>
			</view>
		</template>

		<!-- 轮播 -->
		<template name="slider">
			<swiper class="diy-module1 diy-slider" :autoplay="true" interval="3000" :circular="true"
				:style="'width: '+(width*100)+'rpx;height:'+(height*100)+'rpx;margin-top:'+(marginTop*100)+'rpx;margin-bottom:'+(marginBottom*100)+'rpx;margin-right: auto;margin-left: auto;'">
				<swiper-item @tap.stop.prevent="doJump" :data-linktype="item.linktype" :data-linkid="item.linkid"
					v-for="(item,index) in (data)" :key="item.did">
					<image :src="util.attachedUrl(item.src,baseUrl)" :lazy-load="true"
						:style="'width: 750rpx;height:'+(height*100)+'rpx;'"></image>
				</swiper-item>
			</swiper>
		</template>

		<!-- 按钮 -->
		<template name="button">
			<view class="diy-module1 diy-button"
				:style="'display:flex;flex-direction: '+('right' == float ? 'row-reverse' : 'row')+';flex-wrap:wrap;background-color:'+(bgcolor)">
				<view
					:style="'text-align:center;padding:0;border:none;background-color:'+(btncolor)+';color:'+(fontcolor)+';width:'+(width*100)+'rpx;height:'+(height*100)+'rpx;line-height:'+(height*100)+'rpx;border-radius:'+(radius*100)+'rpx;font-size:'+(fontsize)+'px;margin-left:'+(marginLeft*100)+'rpx;margin-right:'+(marginRight*100)+'rpx;margin-top:'+(marginTop*100)+'rpx;margin-bottom:'+(marginBottom*100)+'rpx;'"
					@tap.stop.prevent="doJump" :data-linktype="item.linktype" :data-linkid="item.linkid" v-for="(item,index) in (data)"
					:key="item.did">{{item.text}}</view>
			</view>
		</template>

		<!-- 标题 -->
		<template name="title">
			<view class="diy-module1 diy-title"
				:style="'background-color:'+(bgcolor)+';margin-top:'+(marginTop*100)+'rpx;margin-bottom:'+(marginBottom*100)+'rpx;padding: 20rpx;height: 100rpx;font-size: 16px;overflow: hidden;display:flex;justify-content:space-between;align-items:center;'"
				@tap.stop.prevent="doJump" :data-linktype="data[0].linktype" :data-linkid="data[0].linkid">
				<image :src="util.attachedUrl(data[0].src,baseUrl)" :lazy-load="true" mode="aspectFill"
					style="height:60rpx;width:60rpx;"></image>
				<view :style="'color:'+(fontcolor)+';line-height:60rpx;flex-grow:1;padding-left:20rpx'">{{data[0].text}}</view>
				<text class="iconfont icon-iconfontyoujiantou" :style="'color:'+(fontcolor)"></text>
			</view>
		</template>

		<!-- 搜索 -->
		<template name="search">
			<view class="diy-module1 diy-search"
				:style="'background-color:'+(bgcolor)+';padding-left:'+(paddingLeft*100)+'rpx;padding-right:'+(paddingRight*100)+'rpx;padding-top:'+(paddingTop*100*baseSize)+'px;padding-bottom:'+(paddingBottom*100*baseSize)+'px;z-index:3;position:'+(position)+';'">
				<view class="diy-search-box">
					<icon type="search" size="30rpx" />
					<input class="diy-search-input" placeholder="请输入商品名称" placeholder-class="diy-placeholder" :disabled="true"
						@tap.stop.prevent="doSearch" />
				</view>
			</view>
		</template>

		<!-- 空白 -->
		<template name="blank">
			<view class="diy-module1 diy-blank" :style="'background-color:'+(bgcolor)+';height:'+(height*100)+'rpx'"></view>
		</template>

		<!-- 通告 -->
		<template name="notice">
			<view v-if="'type2'==csstype" class="diy-module1 diy-notice"
				:style="'background-color:'+(bgcolor)+';margin-top:'+(marginTop*100)+'rpx;margin-bottom:'+(marginBottom*100)+'rpx;padding: 20rpx;'">
				<view
					style="height: 60rpx;font-size: 16px;overflow: hidden;display:flex;justify-content:space-between;align-items:center;">
					<image :src="util.attachedUrl(logo,baseUrl)" :lazy-load="true" style="height:60rpx;width:60rpx;"></image>
					<text :style="'height:60rpx;flex-grow:1;padding-left:20rpx;color:'+(fontcolor)+';line-height:60rpx;'">最新资讯</text>
					<text class="iconfont icon-iconfontyoujiantou" :style="'color:'+(fontcolor)" @tap.stop.prevent="doJump"
						data-linktype="messageType" data-linkid=""></text>
				</view>
				<view style="display: block;margin-top: 20rpx;border-top: 2rpx #ccc solid;">
					<view @tap.stop.prevent="doJump" data-linktype="message" :data-linkid="item.did"
						style="border-bottom: 2rpx #ccc solid;padding: 20rpx 0;display: flex;" v-for="(item,index) in (data)"
						:key="item.did">
						<view style="padding-right: 20rpx;flex-grow: 1;">
							<view
								style="height: 100rpx;line-height: 50rpx;font-size: 28rpx;color: #666;overflow: hidden;white-space: normal;text-overflow: ellipsis;display: -webkit-box;word-break: break-all;-webkit-line-clamp: 2;-webkit-box-orient: vertical;">
								{{item.text}}
							</view>
							<view style="height: 50rpx;font-size: 20rpx;color: #888;line-height: 50rpx;">{{item.modifyTime}}</view>
						</view>
						<image :src="util.attachedUrl(item.image,baseUrl)"
							style="display: block;width: 250rpx;height: 150rpx;flex-shrink: 0;"></image>
					</view>
				</view>
			</view>
			<view v-else class="diy-module1 diy-notice"
				:style="'background-color:'+(bgcolor)+';margin-top:'+(marginTop*100)+'rpx;margin-bottom:'+(marginBottom*100)+'rpx;padding: 20rpx;height: 100rpx;font-size: 16px;overflow: hidden;display:flex;justify-content:space-between;align-items:center;'">
				<image :src="util.attachedUrl(logo,baseUrl)" :lazy-load="true" style="height:60rpx;width:60rpx;"></image>
				<swiper :autoplay="true" interval="3000" :circular="true" :vertical="true"
					style="height:60rpx;flex-grow:1;padding-left:20rpx">
					<swiper-item @tap.stop.prevent="doJump" data-linktype="message" :data-linkid="item.did"
						v-for="(item,index) in (data)" :key="item.did">
						<view :style="'color:'+(fontcolor)+';line-height:60rpx;'">{{item.text}}</view>




					</swiper-item>
				</swiper>
				<text class="iconfont icon-iconfontyoujiantou" :style="'color:'+(fontcolor)" @tap.stop.prevent="doJump"
					data-linktype="messageType" data-linkid=""></text>
			</view>
		</template>

		<!-- 客服 -->
		<template name="custom">
			<button class="diy-custom iconfont icon-kefu" open-type="contact" :show-message-card="true"
				:send-message-title="sendMessageTitle" :send-message-img="sendMessageImg"></button>
		</template>

		<!-- 电话 -->
		<template name="phone">
			<view class="diy-module1 diy-phone" @tap.stop.prevent="call" :data-phone-num="number"
				:style="'height:100rpx;padding:20rpx;display:flex;align-items:center;margin-top:'+(marginTop*100)+'rpx;margin-bottom:'+(marginBottom)+'rpx;background-color:'+(bgcolor)+';'">
				<text class="iconfont icon-dianhua-shi" style="font-size:20px;height:20px"></text>
				<text :style="'flex-grow:1;font-size:16px;font-weight:bold;padding-left:20rpx;color:'+(fontcolor)">{{number}}</text>
				<text class="iconfont icon-iconfontyoujiantou" :style="'height:16px;color:'+(fontcolor)"></text>
			</view>
		</template>

		<!-- 地址 -->
		<template name="address">
			<view class="diy-module1 diy-address" @tap.stop.prevent="openMap" :data-latitude="latitude"
				:data-longitude="longitude"
				:style="'height:100rpx;padding:20rpx;display:flex;align-items:center;margin-top:'+(marginTop*100)+'rpx;margin-bottom:'+(marginBottom)+'rpx;background-color:'+(bgcolor)+';'">
				<text class="iconfont icon-dingwei" style="font-size:20px;height:20px"></text>
				<text
					:style="'flex-grow:1;font-size:16px;font-weight:bold;padding-left:20rpx;color:'+(fontcolor)">{{address}}</text>
				<text class="iconfont icon-iconfontyoujiantou" :style="'height:16px;color:'+(fontcolor)"></text>
			</view>
		</template>

		<!-- 地图 -->
		<template name="map">
			<view class="diy-module1 diy-map"
				:style="'height:'+(height*100)+'rpx;width:'+(width*100)+'rpx;margin-top:'+(marginTop*100)+'rpx;margin-bottom:'+(marginBottom)+'rpx;margin-left:'+(marginLeft)+'rpx;margin-right:'+(marginRight)+'rpx;'">
				<map :longitude="longitude" :latitude="latitude" style="width:100%;height:100%;"
					:markers="[{id:1,latitude:latitude,longitude:longitude}]"></map>
			</view>
		</template>

		<!-- 商品列表 -->
		<template name="goods-abandon">
			<view :class="'diy-module1 diy-goods-box-'+(layout)" style="">
				<view :class="'diy-goods-'+(layout)" @tap.stop.prevent="doJump" :data-linktype="item.linktype"
					:data-linkid="item.linkid"
					:style="('one'==layout||'four'==layout)?('width:'+710*baseSize+'px;margin:'+20*baseSize+'px;'):('two'==layout||'five'==layout)?('width:'+345*baseSize+'px;margin:0 0 '+20*baseSize+'px '+20*baseSize+'px'):('three'==layout||'six'==layout)?('width:'+710*baseSize+'px;margin:'+20*baseSize+'px;'):'none'"
					v-for="(item,index) in (data)" :key="item.did">
					<image :class="'diy-goods-img-'+(layout)" :src="util.attachedUrl(item.src,baseUrl)" :lazy-load="true"></image>
					<view :class="'diy-goods-name-'+(layout)">{{item.text}}</view>
					<view :class="'diy-goods-price-'+(layout)">¥{{item.price}}</view>
				</view>
			</view>
		</template>

		<!-- 自定义 -->
		<template name="self">
			<view class="diy-module1 diy-self"
				:style="'padding-left:'+(paddingLeft*100)+'rpx;padding-right:'+(paddingRight*100)+'rpx;padding-top:'+(paddingTop*100)+'rpx;padding-bottom:'+(paddingBottom*100)+'rpx;'"
				@tap.stop.prevent="doJump" :data-linktype="data[0].linktype" :data-linkid="data[0].linkid">
				<rich-text :nodes="data[0].code"></rich-text>
			</view>
		</template>

		<!-- 布局3 -->
		<template name="layout3">
			<view class="diy-module1 diy-layout3" :style="'background-color:'+(backcolor)+';'">
				<image :src="util.attachedUrl(data[0].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay32'==layway?710:'lay33'==layway?710:'lay34'==layway?345:345)*baseSize)+'px;height:'+(345*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[0].linktype" :data-linkid="data[0].linkid"></image>
				<image :src="util.attachedUrl(data[1].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay32'==layway?345:'lay33'==layway?345:'lay34'==layway?345:345)*baseSize)+'px;height:'+(('lay32'==layway?162.5:'lay33'==layway?345:'lay34'==layway?345:162.5)*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[1].linktype" :data-linkid="data[1].linkid"></image>
				<image :src="util.attachedUrl(data[2].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay32'==layway?345:'lay33'==layway?345:'lay34'==layway?710:345)*baseSize)+'px;height:'+(('lay32'==layway?162.5:'lay33'==layway?345:'lay34'==layway?345:162.5)*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[2].linktype" :data-linkid="data[2].linkid"></image>
			</view>
		</template>
		<!-- 布局4 -->
		<template name="layout4">
			<view class="diy-module1 diy-layout4" :style="'background-color:'+(backcolor)+';'">
				<image :src="util.attachedUrl(data[0].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay42'==layway?345:'lay43'==layway?710:'lay44'==layway?710:345)*baseSize)+'px;height:'+(345*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[0].linktype" :data-linkid="data[0].linkid"></image>
				<image :src="util.attachedUrl(data[1].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay42'==layway?162.5:'lay43'==layway?162.5:'lay44'==layway?345:345)*baseSize)+'px;height:'+(('lay42'==layway?162.5:'lay43'==layway?162.5:'lay44'==layway?162.5:162.5)*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[1].linktype" :data-linkid="data[1].linkid"></image>
				<image :src="util.attachedUrl(data[2].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay42'==layway?162.5:'lay43'==layway?162.5:'lay44'==layway?162.5:162.5)*baseSize)+'px;height:'+(('lay42'==layway?162.5:'lay43'==layway?162.5:'lay44'==layway?162.5:162.5)*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[2].linktype" :data-linkid="data[2].linkid"></image>
				<image :src="util.attachedUrl(data[3].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay42'==layway?345:'lay43'==layway?345:'lay44'==layway?162.5:162.5)*baseSize)+'px;height:'+(('lay42'==layway?162.5:'lay43'==layway?162.5:'lay44'==layway?162.5:162.5)*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[3].linktype" :data-linkid="data[3].linkid"></image>
			</view>
		</template>

		<!-- 布局5 -->
		<template name="layout5">
			<view class="diy-module1 diy-layout5" :style="'background-color:'+(backcolor)+';'">
				<image :src="util.attachedUrl(data[0].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay52'==layway?710:'lay53'==layway?345:'lay54'==layway?345:345)*baseSize)+'px;height:'+(345*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[0].linktype" :data-linkid="data[0].linkid"></image>
				<image :src="util.attachedUrl(data[1].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay52'==layway?162.5:'lay53'==layway?345:'lay54'==layway?345:162.5)*baseSize)+'px;height:'+(('lay52'==layway?162.5:'lay53'==layway?345:'lay54'==layway?162.5:162.5)*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[1].linktype" :data-linkid="data[1].linkid"></image>
				<image :src="util.attachedUrl(data[2].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay52'==layway?162.5:'lay53'==layway?162.5:'lay54'==layway?345:162.5)*baseSize)+'px;height:'+(('lay52'==layway?162.5:'lay53'==layway?162.5:'lay54'==layway?162.5:162.5)*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[2].linktype" :data-linkid="data[2].linkid"></image>
				<image :src="util.attachedUrl(data[3].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay52'==layway?162.5:'lay53'==layway?162.5:'lay54'==layway?345:162.5)*baseSize)+'px;height:'+(('lay52'==layway?162.5:'lay53'==layway?162.5:'lay54'==layway?162.5:162.5)*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[3].linktype" :data-linkid="data[3].linkid"></image>
				<image :src="util.attachedUrl(data[4].src,baseUrl)" :lazy-load="true" class="diy-layout-img"
					:style="'margin-top:'+(20*baseSize)+'px;margin-left:'+(20*baseSize)+'px;width:'+(('lay52'==layway?162.5:'lay53'==layway?345:'lay54'==layway?345:162.5)*baseSize)+'px;height:'+(('lay52'==layway?162.5:'lay53'==layway?162.5:'lay54'==layway?162.5:162.5)*baseSize)+'px;'"
					@tap.stop.prevent="doJump" :data-linktype="data[4].linktype" :data-linkid="data[4].linkid"></image>
			</view>
		</template>

		<!-- 店招 -->
		<template name="sign">
			<view class="diy-module1 diy-sign" @tap.stop.prevent="doJump" :data-linktype="data[0].linktype"
				:data-linkid="data[0].linkid">
				<image class="sign-bg-img" :src="util.attachedUrl(image,baseUrl)" :lazy-load="true" />
				<image class="sign-logo" :src="util.attachedUrl(data[0].src,baseUrl)" :lazy-load="true" />
				<view class="sign-name" :style="'color:'+(fontcolor)">{{data[0].text}}</view>
			</view>
		</template>

		<!-- 文本 -->
		<template name="text">
			<view class="diy-module1 diy-text" @tap.stop.prevent="doJump" :data-linktype="data[0].linktype"
				:data-linkid="data[0].linkid"
				:style="'background-color:'+(bgcolor)+';color:'+(fontcolor)+';text-align:'+(textAlign)+';font-weight:'+(fontweight)+';font-size:'+(fontsize)+'px;padding:'+(paddingTop*100)+'rpx '+(paddingRight*100)+'rpx '+(paddingBottom*100)+'rpx '+(paddingLeft*100)+'rpx;'">
				<view class="text-content">{{data[0].text}}</view>
			</view>
		</template>

		<!-- 秒杀 -->
		<template name="seckill">
			<view class="diy-module1" v-if="data.length > 0">
				<view :class="'sub-title '+(displayType=='type2'?'type2':'type1')" v-if="'block' == display"
					:style="'border-color:'+(color)">
					<view v-if="displayType=='type2'" class="sub-title-name" :style="'background-color:white; color:'+(color)+';'">
						限时秒杀</view>
					<view v-else class="sub-title-name" :style="'background-color:'+(color)+';color:white;'">限时秒杀</view>
					<view class="sub-title-triangle" :style="'border-color: '+(color)+' transparent transparent '+(color)"></view>
					<view class="sub-title-more" @tap.stop.prevent="doJump" data-linktype="seckillList" data-linkid="">
						<text>查看更多</text>
						<text class="iconfont icon-iconfontyoujiantou"></text>
					</view>
				</view>
				<view :class="'diy-seckill diy-seckill-'+(style)" :style="'block' == display?'padding-top:0;':''">
					<view @tap.stop.prevent="doJump" :data-linktype="type" :data-linkid="(item.did)+'-'+(item.goodsId)"
						:class="'seckill-item seckill-item-'+(style)" v-for="(item,index) in (data)" :key="item.did">
						<view :class="'seckill-img-box seckill-img-box-'+(style)"
							:style="'background-image: url('+(util.attachedUrl(item.goodsImages,baseUrl))+')'">
							<view class="seckill-tips">秒杀</view>
							<view class="seckill-countdown">
								<text>{{item.countdown[0]}}</text>
								<view v-if="item.countdown.length > 1" class="seckill-countdown-times">
									<text v-if="item.countdown[1] > 0" class="seckill-countdown-value num">{{item.countdown[1]}}</text>
									<text v-if="item.countdown[1] > 0">天</text>
									<text class="seckill-countdown-value num">{{item.countdown[2]}}</text>
									<text>:</text>
									<text class="seckill-countdown-value num">{{item.countdown[3]}}</text>
									<text>:</text>
									<text class="seckill-countdown-value num">{{item.countdown[4]}}</text>
								</view>
							</view>
						</view>
						<view class="seckill-goods-info">
							<text class="seckill-goods-name">{{item.goodsName}}</text>
							<text class="seckill-goods-sku">{{item.goodsSku}}</text>
							<text class="seckill-goods-rest">仅剩{{item.seckillStock}}件</text>
							<view class="seckill-goods-price num">
								<view class="seckill-goods-new-price">
									<!-- parse <template is="money" :data="money:item.priceStr,fontSize:34"></template> -->
									<block name="money">
										<view style="display:flex;align-items:baseline;line-height:1;" class="num">
											<text :style="'font-size:'+(30*0.7)+'rpx;'">¥ </text>
											<text :style="'font-size:'+(30)+'rpx;'">{{integerMoney.integerMoney(item.price)}}</text>
											<text :style="'font-size:'+(30*0.7)+'rpx;'">{{decimalMoney.decimalMoney(item.price)}}</text>
										</view>
									</block>
								</view>
								<view class="seckill-goods-old-price">¥{{item.orgiPriceStr}}</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</template>

		<!-- 优惠券 -->
		<template name="coupon">
			<view :class="'diy-module1 '+(style)+' '+(couponcolor)" v-if="data.length > 0">
				<view class="diy-coupon-box">
					<view :class="'coupon '+('1'==item.getFlag?'hasGet':item.couponRest<1?'hasOver':'')" @tap.stop.prevent="("
						1"==item.getFlag||item.couponRest<1)? ":" getCoupon""" :data-coupon-id="item.did" v-for="(item,index) in (data)"
						:key="item.did">
						<view class="coupon-left">
							<text
								class="coupon-p1 num">{{"0"==item.discountType?(item.offMoney+"元"):"1"==item.discountType?(item.discount/10+"折"):""}}</text>
							<text class="coupon-p2 num">满{{item.fullMoney}}元可用</text>
							<text class="tip" v-if="'1'==item.getFlag||item.couponRest<1">{{"1"==item.getFlag?"已领取":"已领完"}}</text>
						</view>
						<view class="coupon-right">
							<text>{{"1"==item.getFlag?"已领取":item.couponRest<1?"已领完":"立即领取"}}</text>
						</view>
					</view>
				</view>
			</view>
		</template>

		<!-- 砍价 -->
		<template name="bargain">
			<view class="diy-module1" v-if="data.length > 0">
				<view :class="'sub-title '+(displayType=='type2'?'type2':'type1')" v-if="'block' == display"
					:style="'border-color:'+(color)">
					<view v-if="displayType=='type2'" class="sub-title-name" :style="'background-color:white; color:'+(color)+';'">
						疯狂砍价</view>
					<view v-else class="sub-title-name" :style="'background-color:'+(color)+'; color:white;'">疯狂砍价</view>
					<view class="sub-title-triangle" :style="'border-color: '+(color)+' transparent transparent '+(color)"></view>
					<view class="sub-title-more" @tap.stop.prevent="doJump" data-linktype="bargainList" data-linkid="">
						<text>查看更多</text>
						<text class="iconfont icon-iconfontyoujiantou"></text>
					</view>
				</view>
				<view :class="'diy-bargain diy-bargain-'+(style)" :style="'block' == display?'padding-top:0;':''">
					<view @tap.stop.prevent="doJump" data-linktype="bargain" :data-linkid="item.did"
						:class="'bargain-item bargain-item-'+(style)" v-for="(item,index) in (data)" :key="item.did">
						<view :class="'bargain-img-box bargain-img-box-'+(style)"
							:style="'background-image: url('+(util.attachedUrl(item.image,baseUrl))+')'">
							<view class="bargain-tips">砍价</view>
							<view class="bargain-countdown">
								<text>{{item.countdown[0]}}</text>
								<view v-if="item.countdown.length > 1" class="bargain-countdown-times">
									<text v-if="item.countdown[1] > 0" class="bargain-countdown-value num">{{item.countdown[1]}}</text>
									<text v-if="item.countdown[1] > 0">天</text>
									<text class="bargain-countdown-value num">{{item.countdown[2]}}</text>
									<text>:</text>
									<text class="bargain-countdown-value num">{{item.countdown[3]}}</text>
									<text>:</text>
									<text class="bargain-countdown-value num">{{item.countdown[4]}}</text>
								</view>
							</view>
						</view>
						<view class="bargain-goods-info">
							<text class="bargain-goods-name">{{item.goodsName}}</text>
							<text class="bargain-goods-sku">{{util.clearSpec(item.caseName)}}</text>
							<text class="bargain-goods-rest">仅剩{{item.goodsRest}}件</text>
							<view class="bargain-goods-price num">
								<view class="bargain-goods-new-price">
									<!-- parse <template is="money" :data="money:item.minPrice,fontSize:32"></template> -->
									<block name="money">
										<view style="display:flex;align-items:baseline;line-height:1;" class="num">
											<text :style="'font-size:'+(30*0.7)+'rpx;'">¥ </text>
											<text :style="'font-size:'+(30)+'rpx;'">{{integerMoney.integerMoney(item.price)}}</text>
											<text :style="'font-size:'+(30*0.7)+'rpx;'">{{decimalMoney.decimalMoney(item.price)}}</text>
										</view>
									</block>
								</view>
								<view class="bargain-goods-old-price">¥{{item.originalPrice}}</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</template>

		<!-- 拼团 -->
		<template name="collage">
			<view class="diy-module1" v-if="data.length > 0">
				<view :class="'sub-title '+(displayType=='type2'?'type2':'type1')" v-if="'block' == display"
					:style="'border-color:'+(color)">
					<view v-if="displayType=='type2'" class="sub-title-name" :style="'background-color:white; color:'+(color)+';'">
						开心拼团</view>
					<view v-else class="sub-title-name" :style="'background-color:'+(color)+'; color:white;'">开心拼团</view>
					<view class="sub-title-triangle" :style="'border-color: '+(color)+' transparent transparent '+(color)"></view>
					<view class="sub-title-more" @tap.stop.prevent="doJump" data-linktype="collageList" data-linkid="">
						<text>查看更多</text>
						<text class="iconfont icon-iconfontyoujiantou"></text>
					</view>
				</view>
				<view :class="'diy-collage diy-collage-'+(style)" :style="'block' == display?'padding-top:0;':''">
					<view @tap.stop.prevent="doJump" data-linktype="collage" :data-linkid="(item.did)+'-'+(item.goodsId)"
						:class="'collage-item collage-item-'+(style)" v-for="(item,index) in (data)" :key="item.did">
						<view :class="'collage-img-box collage-img-box-'+(style)"
							:style="'background-image: url('+(util.attachedUrl(item.goodsImages,baseUrl))+')'">
							<view class="collage-tips">拼团</view>
							<view class="collage-countdown">
								<text>{{item.countdown[0]}}</text>
								<view v-if="item.countdown.length > 1" class="collage-countdown-times">
									<text v-if="item.countdown[1] > 0" class="collage-countdown-value num">{{item.countdown[1]}}</text>
									<text v-if="item.countdown[1] > 0">天</text>
									<text class="collage-countdown-value num">{{item.countdown[2]}}</text>
									<text>:</text>
									<text class="collage-countdown-value num">{{item.countdown[3]}}</text>
									<text>:</text>
									<text class="collage-countdown-value num">{{item.countdown[4]}}</text>
								</view>
							</view>
						</view>
						<view class="collage-goods-info">
							<text class="collage-goods-name">【{{item.personNum}}人团】{{item.goodsName}}</text>
							<text
								class="collage-rule">成团条件：{{item.periodSize}}{{"0"==item.periodName?"分钟":"1"==item.periodName?"小时":"2"==item.periodName?"天":"3"==item.periodName?"个月":""}}内，{{item.personNum}}人购买并完成支付</text>
							<view class="collage-goods-old-price num">原价：¥{{item.goodsMinMaxPrice}}</view>
							<view class="collage-goods-new-price num">
								<text>拼团价：</text>
								<!-- parse <template is="money" :data="money:item.groupPrice,fontSize:34"></template> -->
								<block name="money">
									<view style="display:flex;align-items:baseline;line-height:1;" class="num">
										<text :style="'font-size:'+(30*0.7)+'rpx;'">¥ </text>
										<text :style="'font-size:'+(30)+'rpx;'">{{integerMoney.integerMoney(item.price)}}</text>
										<text :style="'font-size:'+(30*0.7)+'rpx;'">{{decimalMoney.decimalMoney(item.price)}}</text>
									</view>
								</block>
							</view>
						</view>
					</view>
				</view>
			</view>
		</template>

		<!-- 直播 -->
		<template name="liveBroadCast">
			<view class="diy-module1" v-if="data.length > 0">
				<view :class="'sub-title '+(displayType=='type2'?'type2':'type1')" v-if="'block' == display"
					:style="'border-color:'+(color)">
					<view v-if="displayType=='type2'" class="sub-title-name" :style="'background-color:white; color:'+(color)+';'">
						直播活动</view>
					<view v-else class="sub-title-name" :style="'background-color:'+(color)+';color:white;'">直播活动</view>
					<view class="sub-title-triangle" :style="'border-color: '+(color)+' transparent transparent '+(color)"></view>
					<view class="sub-title-more" @tap.stop.prevent="doJump" data-linktype="liveBroadCastList" data-linkid="">
						<text>查看更多</text>
						<text class="iconfont icon-iconfontyoujiantou"></text>
					</view>
				</view>
				<view :class="'diy-liveBroadCast diy-liveBroadCast-'+(style)" :style="'block' == display?'padding-top:0;':''">
					<view @tap.stop.prevent="doJump" data-linktype="liveBroadCast" :data-linkid="item.did"
						:class="'liveBroadCast-item liveBroadCast-item-'+(style)" v-for="(item,index) in (data)" :key="item.did">
						<view
							:class="'liveBroadCast-img-box liveBroadCast-img-box-'+(style)+' '+((item.live_status==101 || item.live_status==102 || item.live_status==105 || item.live_status== 106)?'':'disable')"
							:style="'background-image: url('+(util.attachedUrl(item.share_img,baseUrl))+')'">
							<view class="liveBroadCast-tips"
								v-if="item.live_status==101 || item.live_status==105 || item.live_status== 106 || item.live_status== 102">
								直播</view>
							<view class="liveBroadCast-countdown"
								v-if="item.live_status==101 || item.live_status==105 || item.live_status== 106">
								正在直播
							</view>
							<view class="liveBroadCast-countdown" v-else-if="item.live_status==102">
								{{item.start_time_string}}开播
							</view>
							<view class="liveBroadCast-countdown-disable" v-else>
								直播已结束
							</view>
						</view>
						<view class="liveBroadCast-goods-info">
							<text class="liveBroadCast-goods-name">{{item.name}}</text>
						</view>
					</view>
				</view>
			</view>
		</template>

		<!-- 商品列表 -->
		<template name="goods">
			<view class="diy-module1" v-if="data.length > 0">
				<view :class="'diy-goods diy-goods-'+(style)">
					<view @tap.stop.prevent="doJump" :data-linktype="type" :data-linkid="item.did"
						:class="'goods-item goods-item-'+(style)" v-for="(item,index) in (data)" :key="item.did">
						<view :class="'goods-img-box-'+(style)">
							<image class="goods-img" :src="util.attachedUrl(item.goodsImages,baseUrl)"></image>
						</view>
						<view class="goods-info-box">
							<view class="goods-name">{{item.goodsName}}</view>
							<view class="goods-price" v-if="item.hasDisPrice">
								<!-- parse <template is="money" :data="money:item.disPrice,fontSize:34"></template> -->
								<block name="money">
									<view style="display:flex;align-items:baseline;line-height:1;" class="num">
										<text :style="'font-size:'+(30*0.7)+'rpx;'">¥ </text>
										<text :style="'font-size:'+(30)+'rpx;'">{{integerMoney.integerMoney(item.price)}}</text>
										<text :style="'font-size:'+(30*0.7)+'rpx;'">{{decimalMoney.decimalMoney(item.price)}}</text>
									</view>
								</block>
								<text class="tag"
									:style="'color:'+(platformConfig.baseColor)+';border:1px solid '+(platformConfig.baseColor)">限时折扣</text>
							</view>
							<view class="goods-price" v-else>
								<!-- parse <template is="money" :data="money:item.goodsMinPrice,fontSize:34"></template> -->
								<block name="money">
									<view style="display:flex;align-items:baseline;line-height:1;" class="num">
										<text :style="'font-size:'+(30*0.7)+'rpx;'">¥ </text>
										<text :style="'font-size:'+(30)+'rpx;'">{{integerMoney.integerMoney(item.price)}}</text>
										<text :style="'font-size:'+(30*0.7)+'rpx;'">{{decimalMoney.decimalMoney(item.price)}}</text>
									</view>
								</block>
							</view>
							<view class="goods-other">
								<text class="goods-price-old"
									v-if="(!util.isEmpty(item.goodsRetailPrice) && !util.isEqual(item.goodsRetailPrice,item.goodsMinPrice))">{{"¥"
              + util.money(item.goodsRetailPrice)}}</text>
								<text class="goods-sale">{{util.praseInt(item.goodsSale) + util.praseInt(item.goodsSaleSpecial)}}人付款</text>
							</view>
						</view>
					</view>
				</view>
			</view>
		</template>

		<!-- 湖南邮储底部解释权 -->
		<template name="rights">
			<view class="bottom-wrap">
				<view class="bottom-line-left"></view>
				<view class="bottom-text">最终解释权归中国邮政储蓄银行湖南分行所有</view>
				<view class="bottom-line-right"></view>
			</view>
		</template>
	</view>
</template>
<script module="util" lang="wxs">
	function money(s) {
		if (undefined == s || '' == s || null == s) {
			return '0.00';
		} else {
			return parseFloat(s).toFixed(2);
		}
	}

	function praseInt(s) {
		if (undefined == s || '' == s || null == s) {
			return 0;
		} else {
			return parseInt(s);
		}
	}

	function clearSpec(s) {
		if (undefined == s || '' == s || null == s) {
			return s;
		} else {
			var regExp = getRegExp('<.*?>', 'g');
			s = s.replace(regExp, '');
			return s;
		}
	}

	function attachedUrl(relativePath, baseUrl) {
		if (undefined == relativePath || '' == relativePath || null == relativePath) {
			return '';
		} else {
			if (-1 != relativePath.indexOf('attached') && -1 == relativePath.indexOf('http')) {
				return baseUrl + '/' + relativePath;
			} else {
				return relativePath;
			}
		}
	}
	module.exports = {
		money: money,
		praseInt: praseInt,
		clearSpec: clearSpec,
		attachedUrl: attachedUrl
	}
</script>

<style>
	@import "./templates.css";
</style>